package com.sright.bcard.enterprise.biz.service;

import com.sright.bcard.enterprise.biz.manager.IndustryManager;
import com.sright.bcard.common.service.share.dto.enterprise.IndustryDTO;
import com.sright.bcard.enterprise.dal.entity.IndustryDO;
import com.sright.bcard.enterprise.share.service.IndustryService;
import com.sright.common.response.SrightResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class IndustryServiceImpl implements IndustryService {

    @Autowired
    private IndustryManager industryManager;

    @Override
    public SrightResponse<List<IndustryDTO>> industryList() {
        return SrightResponse.defaultSuccess(industryManager.industryList());
    }

    @Override
    public SrightResponse<List<IndustryDO>> personalIndustryList() {
        return SrightResponse.defaultSuccess(industryManager.personalIndustryList());
    }
}
